GtkCssProvider: Make selectors applying from the topmost widget rank higher
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 13 Dec 2010 11:44:29 +0000 (12:44 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 13 Dec 2010 21:31:28 +0000 (22:31 +0100)
commit618b1a8b33398213541888d81ee5788017415f42
treefa9c747a8ccc315d7e976895e2e8e2b3c5dfd1e9
parentd80868aa68ce8e0f4e96549fe62aa475d0c4535b
GtkCssProvider: Make selectors applying from the topmost widget rank higher

For example, for an entry within a notebook, previously these 2 rules would
have the same weight:

.entry {}
.notebook {}

Now ".entry" will rank higher than ".notebook" for the GtkEntry, further
specific selectors such as:

.notebook .entry {}

still get a higher score than the previous ones.
gtk/gtkcssprovider.c